# SPDX-License-Identifier: MIT
# Copyright (c) Huawei Technologies Co., Ltd. 2020-2025. All rights reserved.

include_directories(${CMAKE_CURRENT_LIST_DIR}/../include/framework)

add_compile_definitions(_GNU_SOURCE)

aux_source_directory(${CMAKE_CURRENT_LIST_DIR} COMMON_UTIL_SRC)
add_library(common_util OBJECT ${COMMON_UTIL_SRC})
target_link_libraries(common_util ssl crypto pthread)
set_property(TARGET common_util PROPERTY C_STANDARD 11)
target_include_directories(common_util
    PUBLIC
        ${CMAKE_CURRENT_LIST_DIR}
        ${CMAKE_SOURCE_DIR}/urma/lib/urma/core/include
        ${CMAKE_SOURCE_DIR}/urma/common/include
)